﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Infrastructure;
using DormMS.Model;
using DormMS.Model.SearchModels;
using DormMS.Model.ViewModels;

namespace DormMS.IService
{
    public interface IUserGroupService
    {
        List<UserGroupViewModel> UserGroupManage(UserGroupSearchModel search, out int total);

        Result UserGroupEdit(UserGroup userGroup,int cacheUserId);

        List<SystemMenuModel> GetMenuList(int groupId);

        Result UpdateGroupRole(List<string> AuthList, int GroupId,int cacheUserId);

        Result DelGroupRole(int Id,int cacheUserId);

        List<SystemMenuModel> GetUserMenu(int currentUserGroupId,bool isAdmin);

        List<UserGroup> GetUserGroupList();
    }
}
